﻿using SHRIS.MIS.Common.Util.Model;
using SHRIS.MIS.Entity.SystemManage;
using SHRIS.MIS.Model.Param.SystemManage;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SHRIS.MIS.IService.SystemManage
{
   public interface IDataDictService
    {
        #region 获取数据
        Task<List<DataDictEntity>> GetList(DataDictListParam param);

        Task<List<DataDictEntity>> GetPageList(DataDictListParam param, Pagination pagination);

        Task<DataDictEntity> GetEntity(Guid id);

        Task<int> GetMaxSort();

        bool ExistDictType(DataDictEntity entity);

        /// <summary>
        /// 是否存在字典值
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool ExistDictDetail(string dictType);
        #endregion

        #region 提交数据
        Task SaveForm(DataDictEntity entity);

        Task DeleteForm(string ids);
        #endregion
    }
}
